import { post,get,getREST,put } from "@/utils/request"

export function getPageList(query){
    return get('WorkFlow/page',query)
}

export function startWorkFlow(data){
    return post('WorkFlow',data)
}

export function getDetail(id){
    return getREST('WorkFlow/flowInfo/',id)
}

export function audit(data){
    return put('WorkFlow/audit', data)
}

export function getFormItems(id){
    return getREST('WorkFlow/formItems/',id)
}

export function reStart(data){
    return put('WorkFlow/restart',data)
}